package cn.edu.xaut.mybatisers.mall.Dao;

import cn.edu.xaut.mybatisers.mall.Entity.Consumer;
import org.apache.ibatis.jdbc.SQL;

import java.sql.SQLException;
import java.sql.SQLIntegrityConstraintViolationException;
import java.util.ArrayList;

public interface RegisterDao {
    void addConsumer(Consumer consumer) throws SQLException;
    Boolean updateByID(Consumer consumer) throws SQLException;
    ArrayList<Consumer> findConsumerByAccountMember(Consumer consumer) throws SQLException;
    ArrayList<Consumer> selectConsumerByEmail(Consumer consumer) throws SQLException;

    Consumer selectConsumerById(Consumer consumer) throws SQLException;
}
